package io.renren.common.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "nfs")
public class NfsConfig {
    @Value("ip")
    private static String ip;

    @Value("dir")
    private static String dir;

    @Value("subDir")
    private static String subDir;

    public static String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        NfsConfig.ip = ip;
    }

    public static String getDir() {
        return dir;
    }

    public void setDir(String dir) {
        NfsConfig.dir = dir;
    }

    public static String getSubDir() {
        return subDir;
    }

    public void setSubDir(String subDir) {
        NfsConfig.subDir = subDir;
    }
}
